home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 13 / 013.d81 / hints & tips < prev    next >
Text File  |  2022-08-26  |  1KB  |  93 lines

  1.  
  2.            HINTS & TIPS
  3.  
  4.  
  5.  
  6. Howald 85281
  7.  
  8.  
  9.  I was having problems with all of my
  10.  
  11. games that required a joystick. It
  12.  
  13. seems the C-64 was doing left turns
  14.  
  15. all by itself with nothing in either
  16.  
  17. port. I have a joystick test routine,
  18.  
  19. but it only works in port one. Looking
  20.  
  21. at the schematic in the programmer's
  22.  
  23. reference manual, I saw that port two
  24.  
  25. goes to chips U1 and U28. Making sure
  26.  
  27. that the warranty on my C-64 had
  28.  
  29. expired, I opened it up and swapped U1
  30.  
  31. and U28 (Repairing computers is my
  32.  
  33. job.) I put it back together and
  34.  
  35. turned it on to see if the problem
  36.  
  37. changed. It did! It went away...no
  38.  
  39. more left turns and I found no other
  40.  
  41. problems.
  42.  
  43. - - - - - - - - - - - - - - - - - - -
  44.  
  45.            More C-64 Tips
  46.  
  47.                from
  48.  
  49.          Michael Dombrowski
  50.  
  51.  
  52.  
  53. 1. Faster Execution:
  54.  
  55.    Use a period (.) instead of zero.
  56.  
  57.    EXAMPLE
  58.    10 IF X=. THEN 200
  59.  
  60.  
  61.    Leave off the variables in NEXT
  62.  
  63.    statements.
  64.  
  65.  
  66.  
  67. 2. Bad Inputs:
  68.  
  69.    Use quotes when INPUTing data. This
  70.  
  71.    will prevent an 'EXTRA IGNORED'
  72.  
  73.    error.
  74.  
  75.  
  76. 3. UnDIMensioning an array:
  77.  
  78.    10 DIM A(10)
  79.    20 POKE49,PEEK(47):POKE50,PEEK(48)
  80.    30 DIM A(100)
  81.  
  82. >Note:  This unDIMensions all arrays!!
  83.  
  84.  
  85. 4. Cursor speed:
  86.  
  87.    POKE 56325,x
  88.  
  89.    x = 0 to 255, 0 is fastest.
  90.  
  91.  
  92. ----------< end of article >----------
  93.